package com.betterjr.modules.receivable;

import java.util.Map;

public interface IScfReceivableService {

    /**
     * 应收账款信息编辑
     */
    public String webSaveModifyReceivable(Map<String, Object> anMap, Long anId, String anFileList,
            String anOtherFileList);

    /**
     * 应收账款信息分页查询
     */
    public String webQueryReceivable(Map<String, Object> anMap, String anIsOnlyNormal, String anFlag, int anPageNum,
            int anPageSize);

    /**
     * 应收账款信息无分页查询
     */
    public String webFindReceivableList(Map<String, Object> anMap, String anIsOnlyNormal);

    /**
     * 应收账款详情查询
     */
    public String webFindReceivableDetailsById(Long anId);

    /**
     * 应收账款新增
     */
    public String webAddReceivable(Map<String, Object> anMap, String anFileList, String anOtherFileList);

    public String webSaveAduitReceivable(Long anId);

    public String webAddReceivableDO(Map<String, Object> anAnMap, String anFileList, boolean anConfirmFlag);

    public String webSaveModifyReceivableDO(Map<String, Object> anAnMap, String anFileList, boolean anConfirmFlag);

    public String webSaveAnnulReceivable(String anRefNo, String anVersion);

    public String webSaveAuditReceivableByRefNoVersion(String anRefNo, String anVersion, Map<String, Object> anAnMap);

    public String webFindReceivableByRefNoVersion(String anRefNo, String anVersion);

    public String webQueryIneffectiveReceivable(Map<String, Object> anAnMap, String anFlag, int anPageNum,
            int anPageSize, boolean anIsAudit);

    public String webQueryEffectiveReceivable(Map<String, Object> anAnMap, String anFlag, int anPageNum, int anPageSize,
            boolean anIsCust);


    public String webFindReceivableByRefNoVersion(Long anId);

    /**
     * 
     * @Title: webQueryNotUserEffectiveReceivable 
     * @Description:  分页查询生效且未使用应收账款
     * @param anMap 前端参数
     * @param pageNum 页码
     * @param pageSize  页面大小
     * @param flag  是否统计总数
     * @param anIsCust  Ture 供应商查询，false资金方查询
     * @return 查询生效且未使用应收账款分页
     * @throws 
     * @author xuzx
     * @date 2017年11月22日 下午4:48:36
     */
    public String webQueryNotUserEffectiveReceivable(Map<String, Object> anMap, int anPageNum, int anPageSize,
            int anFlag, boolean anIsCust);


}
